import java.io.*;
import syntaxTree.program.*;

public class main {
  static public void main(String[] argv) {    
      try{
      parser p = new parser(new miniJava(new FileReader("E:\\IT\\Workspace\\miniJava\\src\\test.txt")));
      programMain result = (programMain)p.parse().value;
      System.out.println(result.toString());
      System.out.println("Well Done!");
      String c = result.toC();
      System.out.println(c);
      }catch (Exception e) {
           e.printStackTrace();
           System.out.println("haha you're wrong!");
      }      
  }  
}